<php>
$_index_nav_cate = M('Cate')->order('sort')->select();
import('Class.Cate',APP_PATH);
$_index_nav_cates = Cate::unlimitedForLayer($_index_nav_cate);
</php>
<!-- menu -->	
		<div id="menu">
			<ul>
				<li id="current">
					<a href="__APP__" title="首页">Home</a>
				</li>
	
				<foreach name="_index_nav_cates" item="item">
					<li class="last"><a href="{:U('/l_' . $item['id'])}">{$item.c_name}</a>
						<ul> <!-- item submenu --> 
							<foreach name="item.child" item="value">
								<li><a href="{:U('/l_' . $value['id'])}">{$value.c_name}</a></li> 
							</foreach>
						</ul> <!-- close submenu --> 
					</li>	
				</foreach>	
			</ul>
		</div>			